﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAL;
namespace BUS
{
    public class AccountBL
    {
        AccountDAL dal = new AccountDAL();


        #region[Account_SelectALL]
        public List<DTO.AccountDTO> Account_SelectALL()
        {
            return dal.Account_SelectALL();
        }
        #endregion

        #region[Account_SelectByName]
        public List<DTO.AccountDTO> Account_SelectByName(String name)
        {
            return dal.Account_SelectByName(name);
        }
        #endregion

        #region[Account_SelectByID]
        public DTO.AccountDTO Custummer_SelectByID(int id)
        {
            return dal.Custummer_SelectByID(id);
        }
        #endregion

        #region[Account_SelectByUserName]
        public List<DTO.AccountDTO> Custummer_SelectByUserName(string username)
        {
            return dal.Custummer_SelectByUserName(username);
        }
        #endregion

        #region [Account_Insert]
        public bool Account_Insert(DTO.AccountDTO acc)
        {
            return dal.Account_Insert(acc);
        }
        #endregion

        #region [Account_Update]
        public bool Account_Update(DTO.AccountDTO acc)
        {
            return dal.Account_Update(acc);
        }
        #endregion

        #region [Account_Delete]
        public bool Account_DeleteByID(DTO.AccountDTO acc)
        {
            return dal.Account_DeleteByID(acc);
        }
        #endregion

    }
}
